﻿<%@ Page Title="Bestellingen" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Orders.aspx.cs" Inherits="milanov.Orders" %>
<%-- Thom --%>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
        <h1><%: Title %></h1>
            <asp:Label ID="Bestelling" runat="server"></asp:Label><br />
            <asp:Label ID="OrdercountLabel" runat="server"></asp:Label>
            <br />
            <asp:GridView ID="CartGrid" runat="server" AutoGenerateColumns="False" ShowFooter="False"
                CellPadding="10" DataKeyNames="OrderId" PageSize="100" Font-Bold="False"
                Font-Names="Verdana" Font-Size="Small" BorderColor="#CCCCCC" BorderStyle="None"
                BackColor="White" BorderWidth="1px" ForeColor="Black" GridLines="Horizontal" Height="20px" Width="900px" RowStyle-HorizontalAlign="Center">
                <Columns>
                    <asp:TemplateField HeaderText="Bestelling">
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='#'></asp:Label><%# Container.DataItemIndex + 1 %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ordernummer">
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("OrderId", @"~/View.aspx?order={0}") %>'
                                Text='<%#Eval("OrderId")%>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="Status" HeaderText="Status">
                        <ItemTemplate>
                            <%# (Boolean.Parse(Eval("Completed").ToString())) ? "Afgehandeld" : "Openstaand" %>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <SelectedRowStyle BackColor="#999999" />
            </asp:GridView>
    <br />
    <br />
</asp:Content>
